﻿<%@ Page Language="C#" MasterPageFile="~/QuanTri/Manager.master" AutoEventWireup="true" CodeFile="QuanLyCanBoGiaoVen.aspx.cs" Inherits="QuanTri_QuanLyCanBoGiaoVen" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head1" Runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Quản lý thông tin giáo viên
                </div>
                 
                <div>
                    <asp:GridView ID="grvDanhSachGV" runat="server" AutoGenerateColumns="False" Width="100%"
                        AllowPaging="True" Height="28px" ShowFooter="True" 
                        onrowediting="grvDanhSachGV_RowEditing">
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="ckCheck" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                    <%# Container.DataItemIndex + 1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tên GV">
                                <ItemTemplate>
                                    <asp:Label ID="lblMaGV" runat="server" Text='<%#Bind("MaCanBoGV")%>' Visible="false"></asp:Label>
                                    <%#Eval("TenCanBo") %>
                                </ItemTemplate>
                                <EditItemTemplate><asp:TextBox runat="server" ID="txtTenGV" Text='<%#Bind("TenCanBo") %>'></asp:TextBox>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ngày sinh">
                                <ItemTemplate>
                                <%#Eval("NgaySinh")%>
                                </ItemTemplate>
                                <EditItemTemplate>
                                <asp:TextBox ID="txtNgaySinh" runat="server" Text='<%#Bind("NgaySinh") %>'></asp:TextBox>
                               
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Giới tính">
                                <ItemTemplate>
                               <%#Eval("GioiTinh")%>
                                </ItemTemplate>
                                <EditItemTemplate>
                                   <asp:DropDownList runat="server" ID="ddlGioiTinh" Width="70px">
                                      <asp:ListItem Text="Nam" Value="0"></asp:ListItem>
                                      <asp:ListItem Text="Nữ" Value="1"></asp:ListItem>
                                    </asp:DropDownList>                                                                                   
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Địa chỉ">
                                <ItemTemplate>
                                <%#Eval("DiaChi") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                   <asp:TextBox ID="txtDiaChi" Text='<%#Bind("DiaChi") %>' runat="server"></asp:TextBox>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Số ĐT">
                                <ItemTemplate>
                                    <%#Eval("SDT") %>
                                </ItemTemplate>
                                <EditItemTemplate>
                                   <asp:TextBox ID="txtSDT" runat="server" Text='<%#Bind("SDT")%>'></asp:TextBox>
                                </EditItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="Email">
                                <ItemTemplate>
                                   <%#Eval("Email")%>
                                </ItemTemplate>
                                <EditItemTemplate>
                                 <asp:TextBox ID="txtEmail" runat="server" Text='<%#Bind("Email") %>'></asp:TextBox>
                                </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowEditButton="true" EditText="Sửa" HeaderText="Sửa" ControlStyle-Font-Underline="true"/>
                            <asp:CommandField ShowDeleteButton="true" DeleteText="Xóa" ControlStyle-Font-Underline="true" HeaderText="Xóa"
                                ControlStyle-ForeColor="Blue" />
                        </Columns>
                        <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#E4ECEF" Font-Bold="True" BorderColor="Blue" Height="30px" />
                    </asp:GridView>
                </div>
                <div style="padding-left: 210px; padding-top: 10px;">
                    <asp:Button runat="server" ID="btnThem" CssClass="button" Text="Thêm GV" 
                        onclick="btnThem_Click" />&nbsp;&nbsp;
                     <asp:Button runat="server" ID="btnNhapExcel" CssClass="button" Text="Nhập từ Excel" />&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnXoaTat" CssClass="button" Text="Xóa tất cả" />
                </div>
                </div>
                
            </div>
        </div>
</asp:Content>

